package co.fitstart.weapp.api.dao;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;

import co.fitstart.entity.user.Student;
import co.fitstart.entity.user.User;

/**
 * 
 * @author dan
 *
 */
@Dao("hibernate")
public interface StudentDao {
    
    /**
     * 
     * @param user
     * @return
     */
    @Query("FROM Student WHERE disabled = false AND user = :user")
    public Student load(@Variable("user") User user);
}
